	
/****** Object:  Stored Procedure CustomerProductsUpdate    Script Date: Thursday, May 17, 2007 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spCustomerProductsUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [spCustomerProductsUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: spCustomerProductsUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 5/17/2007 2:02:03 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE spCustomerProductsUpdate
	@UserID int, 
	@ProductCode varchar(10), 
	@ReservedQty int, 
	@ReservedDate datetime, 
	@NumberOfDay int 
AS

UPDATE [CustomerProducts] SET
	[ReservedQty] = @ReservedQty,
	[ReservedDate] = @ReservedDate,
	[NumberOfDay] = @NumberOfDay
WHERE
	[UserID] = @UserID
	AND [ProductCode] = @ProductCode

GO
